export const tableOption = {
  //title: '房产管理',
  //excelBtn: true,
  border: true,
  //"index": true,
  //"indexLabel": "序号",
  stripe: true,
  menuAlign: "center",
  searchMenuSpan: 6,
  editBtn: false,
  delBtn: false,
  align: "center",
  viewBtn: false,
  addBtn: false,
  columnBtn: false,
  searchLabelWidth: 100,
  dialogEscape: false,
  dialogClickModal: false,
  //excelBtn: true,//系统自带的导出功能
  //expand: true,
  //expandWidth: 60,
  column: [
    {
      type: "input",
      label: "主键",
      //editDisplay: false,
      //addDisplay: false,
      hide: true,
      prop: "id"
    },
    {
      type: "input",
      label: "房产编号",
      search: true,
      slot: true,
      prop: "projectNumber"
    },
    {
      type: "select",
      label: "房产类型",
      dicUrl: "/admin/dict/type/rm_project_buiding_type",
      search: true,
      prop: "buildingType"
    },
    {
      type: "select",
      label: "房屋区域",
      prop: "projectSite",
      
      // formatter: function (row, value, label, column) {
      //   if (value == 1) {
      //     return `一期 `;
      //   }
      //   if (value == 2) {
      //     return "二期";
      //   }

      // },

      searchslot: true
    },
    {
      type: "Number",
      label: "楼层",
      prop: "projectFloorNumber",
      search: true,
      searchslot: true
    },

    {
      type: "input",
      label: "房号",
      prop: "projectName"
    },
    {
      type: "number",
      label: "面积(㎡)",
      width: "100px",
      prop: "projectArea", /*projectName  */
      search: true,
      searchslot: true
    },
    {
      type: "select",
      dicUrl: "/admin/dict/type/rm_project_status",
      //props: {
      //  label: 'label',
      //  value: 'value'+''
      //},
      label: "房产状态",
      search: true,
      prop: "projectStatus",
      formatter: function (row, value, label, column) {
        if (value == 1) {
          return "已租";
        }
        if (value == 2) {
          return "未租";
        }
        if (value == 3) {
          return "已售";
        }
        if (value == 4) {
          return "未售";
        }
      }
    },
    {
      label: "租期类型",
      search: true,
      prop: "rentType",
      type: "select",
      formatter: function (row, value, label, column) {
        if (value == 1) {
          return "短租";
        }
        if (value == 2) {
          return "长租";
        }
      },

    },
    /*  {
       type: "input",
       label: "关联合同编号",
       slot: true,
       width: "150px",
       prop: "modifyContractId"
     }, */
    {
      type: "select",
      dicUrl: "/admin/dict/type/rm_project_property",
      label: "房产性质",
      hide: true,
      prop: "projectProperty"
    },
    {
      type: "input",
      label: "创建者",
      hide: true,
      prop: "createBy"
    },
    {
      label: "创建时间",
      hide: true,
      type: "datetime",
      format: "yyyy-MM-dd HH:mm",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
      editDisplay: false,
      addDisplay: false,
      prop: "createDate"
    },
    {
      type: "input",
      label: "更新者",
      hide: true,
      prop: "updateBy"
    },
    {
      type: "input",
      label: "更新时间",
      hide: true,
      prop: "updateDate"
    },
    {
      type: "input",
      label: "备注信息",
      hide: true,
      prop: "remarks"
    }
    //{
    //  "type": "input",
    //  "label": "逻辑删除标记（0：显示；1：隐藏",
    //  hide: true,
    //  "prop": "delFlag"
    //}
  ]
};

export const tableOptions = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  dialogEscape: false,
  dialogClickModal: false,
  menuAlign: "center",
  align: "center",
  column: [
    {
      label: "主键",
      prop: "id",
      hide: true,
      addDisplay: false,
      editDisplay: false
    },
    {
      label: "房产状态",
      prop: "projectStatus",
      rules: [
        {
          required: true,
          message: "请输入名称",
          trigger: "blur"
        }
      ]
    },
    {
      label: "面积(㎡)",
      prop: "projectArea",
      rules: [
        {
          required: true,
          message: "请输入用户名",
          trigger: "blur"
        }
      ]
    },
    {
      label: "房号",
      prop: "projectName",
      rules: [
        {
          required: true,
          message: "请输入用户名",
          trigger: "blur"
        }
      ]
    },
    {
      label: "楼层",
      prop: "projectFloorNumber",
      rules: [
        {
          required: true,
          message: "请输入用户名",
          trigger: "blur"
        }
      ]
    },
    {
      label: "房产楼号/区域",
      prop: "projectTypeId",
      rules: [
        {
          required: true,
          message: "请输入用户名",
          trigger: "blur"
        }
      ]
    },
    {
      label: "房产类型",
      prop: "buildingType",
      rules: [
        {
          required: true,
          message: "请输入密码",
          trigger: "blur"
        }
      ]
    },
    {
      label: "房产编号",
      prop: "projectNumber",
      rules: [
        {
          required: true,
          message: "请输入密码",
          trigger: "blur"
        }
      ]
    },
    {
      label: "备注",
      prop: "remarks",
      rules: [
        {
          required: true,
          message: "请输入密码",
          trigger: "blur"
        }
      ]
    },
    {
      label: "删除",
      prop: "delFlag",
      rules: [
        {
          required: true,
          message: "请输入密码",
          trigger: "blur"
        }
      ]
    },
    {
      label: "header",
      prop: "tenantId",
      rules: [
        {
          required: true,
          message: "请输入密码",
          trigger: "blur"
        }
      ]
    },
    {
      label: "关联合同",
      prop: "ctContract",
      rules: [
        {
          required: true,
          message: "请输入密码",
          trigger: "blur"
        }
      ]
    },
    {
      label: "创建人",
      prop: "createBy",
      addDisplay: false,
      editDisplay: false,
      overHidden: true
    },
    {
      label: "操作人",
      prop: "updateBy",
      addDisplay: false,
      editDisplay: false,
      overHidden: true
    },
    {
      label: "创建时间",
      prop: "createDate",
      addDisplay: false,
      editDisplay: false,
      overHidden: true
    },
    {
      label: "更新时间",
      prop: "updateDate",
      overHidden: true,
      addDisplay: false,
      editDisplay: false
    }
  ]
};
